-- GENERATED SPELL FOR [Spectral Servant] --


function spell0_16407(pUnit, Event) --@Curse of Past Burdens,n/a--
pUnit:FullCastSpellOnTarget(29540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16407', 15307, 1)
end

function Sorts_16407(pUnit, Event)
local choix_sorts_16407 = math.random(0, 0)
if choix_sorts_16407 == 0 then
pUnit:RegisterEvent('spell0_16407', 1, 1)
end
end

function mob16407_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16407', math.random(1500, 3000), 1)
end

function mob16407_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16407_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16407_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16407, 1, 'mob16407_Action')
RegisterUnitEvent(16407, 2, 'mob16407_Leave')
RegisterUnitEvent(16407, 3, 'mob16407_Kill')
RegisterUnitEvent(16407, 4, 'mob16407_Die')
